package com.alogic.textfilter.impl;

import com.alogic.textfilter.TextFilter;
import org.apache.commons.lang3.StringEscapeUtils;

/**
 * xml转义
 *
 * @since 1.6.13.10 [20200827 duanyy]
 */
public class XmlEscape extends TextFilter.Escape {
    @Override
    protected String escape(String value) {
        return StringEscapeUtils.escapeXml11(value);
    }

    @Override
    protected String unescape(String value) {
        return StringEscapeUtils.unescapeXml(value);
    }
}